<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"></meta>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta>
    <meta name="keywords"></meta>
    <meta name="author" content=""></meta>
    <meta name="viewport"
          content="width=device-width,initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0"></meta>
    <meta name="renderer" content="webkit"></meta>
    <meta name="HandheldFriendly" content="true"></meta>
    <style>
        html{
            font-family: SimSun, serif;}
        @page {
            size: 210mm 297mm; /*设置纸张大小:A4(210mm 297mm)、A3(297mm 420mm) 横向则反过来*/
        }

        .ticket-con{
            width: 100%;
        }

        .ticket-con .exam-item{
            float: left;
            width: 50%;
            padding: 0 5px 0 5px;
            margin-top: 10px;
            box-sizing: border-box;
        }

        .ticket-con .ticket-item {

        }

        .ticket-con .ticket-item .print-item{
          background-color: #fff;
          border: 1px solid #000000;
          width: 100%;
          padding: 0 10px;
          box-sizing: border-box;
            position: relative;
        }

        .ticket-con .ticket-item .print-item .title{
            font-size: 18px;
            font-weight: bold;
            text-align: center;
            margin: 10px 0;
        }
        .ticket-con .ticket-item .print-item .info{
            width:100%;
        }
        .ticket-con .ticket-item .print-item .info .info-up-con{
            width: 100%;
            padding-right: 90px;
        }
        .ticket-con .ticket-item .print-item .info .qr{

        }
        .ticket-con .ticket-item .print-item .info .qr .qr-img{
            position: absolute;
            top: 30px;
            right: 0;
            vertical-align: top;
            width: 80px;
            height: 80px;
        }
        .ticket-con .ticket-item .print-item .info .qr .avatar-img{
            position: absolute;
            top: 80px;
            right: 10px;
            vertical-align: top;
            width: 80px;
            height: 80px;
            display: block;
        }
        .ticket-con .ticket-item .print-item .info .info-up-con .info-item{
            font-size: 14px;
            height: 18px;
            line-height: 18px;
            width: 100%;
        }

        .ticket-con .ticket-item .print-item .info .info-up-con-line .info-item{
            font-size: 14px;
            height: 18px;
            line-height: 18px;
            width: 100%;
        }

        .ticket-con .ticket-item .print-item .info .info-up-con .info-item .school-name{
            font-size: 13px;
            height: 18px;
            line-height: 18px;
            width: 100%;
            scale: 0.9;
        }

        .ticket-con .ticket-item .print-item .info .info-up-con .info-item .label{
            width: 70px;
            display: inline-block;
            font-weight: 500;
            scale: 0.9;
        }

        .ticket-con .ticket-item .print-item .info .info-up-con-line .info-item .label{
            width: 80px;
            display: inline-block;
            font-weight: 500;
            font-size:13px;
        }

        table{
            border:1px solid #e5e5e5;
            border-collapse:collapse;
        }

        td {
          text-align: center;
          vertical-align: middle;
          color: #000;
          border:1px solid #000000;
          width: 100px;
          height: 26px;
          max-height:26px;
          font-size: 12px;
        }

        td.head{
          height: 30px;
          max-height:30px;
        }

        .clearfix{
            clear: both;
        }

    </style>
</head>
<body>
<div class="ticket-con">
    <#list data as std>
        <div class="exam-item">
        <div class="ticket-item">
            <div class="print-item" >
                <div class="title">准考证</div>
                <div class="info">
                    <div class="info-up-con" >
                        <div class="info-item" >
                            <span class="label">姓名：</span><span>${std.name }</span>
                        </div>
                        <div class="info-item" >
                            <span class="label">性别：</span>
                            <#if std.sex == '1'>
                                <span>男</span>
                            <#elseif std.sex == '2'>
                                <span>女</span>
                            </#if>
                        </div>
                        <div class="info-item" >
                            <span class="label">学校：</span><span class="school-name">${std.schoolName }</span>
                        </div>
                        <div class="info-item" >
                            <span class="label">年/班级：</span><span>${std.gradeName + " " + std.classesName }</span>
                        </div>
                    </div>
                    <div class="qr" >
                        <img class="qr-img" src="data:image/png;base64,${std.qrCode}" />
<#--                        <#if std.avatarUrl?? >-->
<#--                            <img class="avatar-img" src="${std.avatarUrl}" style="margin-top: 10px;width: 60px;height: 60px;border-radius: 6px"/>-->
<#--                        </#if>-->
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="info">
                    <div class="info-up-con-line">
                        <div class="info-item" >
                            <span class="label">学籍号：</span><span>${std.studyCode }</span>
                        </div>
                        <div class="info-item" >
                            <span class="label">考试项目：</span><span></span>
                        </div>
                    </div>
                </div>
                <div class="test-result" style="margin-top: 10px">
                    <table class="table" >
                        <tbody>
                        <#if std.testPrjNames?? && std.testPrjNames?size gt 0>
                            <tr >
                            <#list 1..4 as idx>
                                <td class="head">
                                    ${std.testPrjNames[idx - 1]!""}
                                </td>
                            </#list>
                            </tr>
                        </#if>
                        <#if std.testPrjNames?? && std.testPrjNames?size gt 0>
                            <tr >
                                <td ></td>
                                <td ></td>
                                <td ></td>
                                <td ></td>
                            </tr>
                        </#if>
                        <#if std.testPrjNames?? && std.testPrjNames?size gt 0>
                            <tr >
                            <#list 1..4 as idx>
                                <td class="head">
                                    ${std.testPrjNames[idx + 3]!""}
                                </td>
                            </#list>
                            </tr>
                            <tr >
                                <td ></td>
                                <td ></td>
                                <td ></td>
                                <td ></td>
                            </tr>
                        </#if>
                        </tbody>
                    </table>
                    <div>
                        <div style="font-weight: 500; margin-top: 8px;font-size:14px">注意事项</div>
                        <div style="margin: 8px 0;font-size:12px">
                            避免准考证二维码磨损或者弯折破损
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </div>
    </#list>
</div>
</body>
</html>